package org.gsc.mygsclib.commonutils;

import android.content.Context;
import android.net.ConnectivityManager;

public class NetWorkStatusUtils {
	public boolean getNetWorkStatus(Context ctx) {

		boolean netSataus = false;
		ConnectivityManager cwjManager = (ConnectivityManager) ctx
				.getSystemService(Context.CONNECTIVITY_SERVICE);

		cwjManager.getActiveNetworkInfo();

		if (cwjManager.getActiveNetworkInfo() != null) {
			netSataus = cwjManager.getActiveNetworkInfo().isAvailable();
		}

		return netSataus;
	}

}
